package team.seekers.oj.group.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import team.seekers.oj.common.entity.BaseDTO;

import java.util.Date;
import java.util.List;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class GroupDTO extends BaseDTO {

    private Long groupId;

    private String groupName;

    private Integer type;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long userId;

    private Integer userNum;

    private List<String> users; // List<username>

    private Date gmtCreate;

    private Date gmtModified;
}